string_is_lower_case
This function returns a boolean value showing whether the passed string contains purely lower case letters.
bool string_is_lower_case(string the_string)
Parameters:
the_string
The string that will be evaluated.
Return value:
Returns true if the string contains purely lower case letters, false if not or if an error occurred.
Remarks:
This function does not evaluate punctuation. If the string contains punctuation this function will return false.
Example:
void main()
{
string text1, text2;
text1="I am normal text.";
text2="randomness";
if(string_is_lower_case(text1))
{
alert("string_is_lower_case test", "text1 contains lower case letters only.");
}
else
{
alert("string_is_lower_case test", "text1 does not contain only lower case letters.");
}
if(string_is_lower_case(text2))
{
alert("string_is_lower_case test", "text2 contains lower case letters only.");
}
else
{
alert("string_is_lower_case test", "text2 does not contain only lower case letters.");
}
}